package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.model.domain.VisitLog;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2022-06-01
 */
@Repository
public interface VisitLogMapper extends BaseMapper<VisitLog> {

    VisitLog getvisitlogbyStuId(Long id);

    Integer addvisitlog(VisitLog visitLog);

    void updatevisitlog(Long timeId, Long teaId,Long stuId);

    Boolean getbreakTimeandTeacher(Long timeId, Long teaId);

    Page<VisitLog> getall( Page<VisitLog> page);

    Page<VisitLog> getpatientbyTeaId(Long id,Page<VisitLog> page);

    void deletevisitLog(Long visId);

    List<Long> getvisitlogteaIds();

    List<Long> getvisitlogtimeIds();



    int onProgress(Long id,Long teacherId);

//    void deleteFaker(HashMap<String,Long> resMap);

    List<VisitLog> queryVisitLog(Long stuId);

}
